package handler

import (
	"fmt"
	"travel/project/global"
	"travel/project/intdler/models"
)

func List() {
	var user []models.User
	var nuser []*models.User

	for _, i2 := range user {

		global.MysqlDB.Where("username = ?", "%"+i2.Username+"%")

		users := models.User{
			Id:       i2.Id,
			Mobile:   i2.Mobile,
			Username: i2.Username,
			Password: i2.Password,
		}
		nuser = append(nuser, &users)
	}
	fmt.Println(nuser)

}
